/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package slcu.service.persistence;

import com.liferay.portal.service.persistence.BasePersistence;

import slcu.model.Coordinador;

/**
 * The persistence interface for the Coordinador service.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author tito
 * @see CoordinadorPersistenceImpl
 * @see CoordinadorUtil
 * @generated
 */
public interface CoordinadorPersistence extends BasePersistence<Coordinador> {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify or reference this interface directly. Always use {@link CoordinadorUtil} to access the Coordinador persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
	 */

	/**
	* Caches the Coordinador in the entity cache if it is enabled.
	*
	* @param coordinador the Coordinador
	*/
	public void cacheResult(slcu.model.Coordinador coordinador);

	/**
	* Caches the Coordinadors in the entity cache if it is enabled.
	*
	* @param coordinadors the Coordinadors
	*/
	public void cacheResult(java.util.List<slcu.model.Coordinador> coordinadors);

	/**
	* Creates a new Coordinador with the primary key. Does not add the Coordinador to the database.
	*
	* @param coordinadorId the primary key for the new Coordinador
	* @return the new Coordinador
	*/
	public slcu.model.Coordinador create(long coordinadorId);

	/**
	* Removes the Coordinador with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param coordinadorId the primary key of the Coordinador
	* @return the Coordinador that was removed
	* @throws slcu.NoSuchCoordinadorException if a Coordinador with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Coordinador remove(long coordinadorId)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchCoordinadorException;

	public slcu.model.Coordinador updateImpl(
		slcu.model.Coordinador coordinador, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the Coordinador with the primary key or throws a {@link slcu.NoSuchCoordinadorException} if it could not be found.
	*
	* @param coordinadorId the primary key of the Coordinador
	* @return the Coordinador
	* @throws slcu.NoSuchCoordinadorException if a Coordinador with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Coordinador findByPrimaryKey(long coordinadorId)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchCoordinadorException;

	/**
	* Returns the Coordinador with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param coordinadorId the primary key of the Coordinador
	* @return the Coordinador, or <code>null</code> if a Coordinador with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Coordinador fetchByPrimaryKey(long coordinadorId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns all the Coordinadors where mail = &#63;.
	*
	* @param mail the mail
	* @return the matching Coordinadors
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.Coordinador> findByMail(
		java.lang.String mail)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the Coordinadors where mail = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mail the mail
	* @param start the lower bound of the range of Coordinadors
	* @param end the upper bound of the range of Coordinadors (not inclusive)
	* @return the range of matching Coordinadors
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.Coordinador> findByMail(
		java.lang.String mail, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the Coordinadors where mail = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param mail the mail
	* @param start the lower bound of the range of Coordinadors
	* @param end the upper bound of the range of Coordinadors (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching Coordinadors
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.Coordinador> findByMail(
		java.lang.String mail, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first Coordinador in the ordered set where mail = &#63;.
	*
	* @param mail the mail
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching Coordinador
	* @throws slcu.NoSuchCoordinadorException if a matching Coordinador could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Coordinador findByMail_First(java.lang.String mail,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchCoordinadorException;

	/**
	* Returns the first Coordinador in the ordered set where mail = &#63;.
	*
	* @param mail the mail
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching Coordinador, or <code>null</code> if a matching Coordinador could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Coordinador fetchByMail_First(java.lang.String mail,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the last Coordinador in the ordered set where mail = &#63;.
	*
	* @param mail the mail
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching Coordinador
	* @throws slcu.NoSuchCoordinadorException if a matching Coordinador could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Coordinador findByMail_Last(java.lang.String mail,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchCoordinadorException;

	/**
	* Returns the last Coordinador in the ordered set where mail = &#63;.
	*
	* @param mail the mail
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching Coordinador, or <code>null</code> if a matching Coordinador could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Coordinador fetchByMail_Last(java.lang.String mail,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the Coordinadors before and after the current Coordinador in the ordered set where mail = &#63;.
	*
	* @param coordinadorId the primary key of the current Coordinador
	* @param mail the mail
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next Coordinador
	* @throws slcu.NoSuchCoordinadorException if a Coordinador with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Coordinador[] findByMail_PrevAndNext(long coordinadorId,
		java.lang.String mail,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchCoordinadorException;

	/**
	* Returns all the Coordinadors.
	*
	* @return the Coordinadors
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.Coordinador> findAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the Coordinadors.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of Coordinadors
	* @param end the upper bound of the range of Coordinadors (not inclusive)
	* @return the range of Coordinadors
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.Coordinador> findAll(int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the Coordinadors.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of Coordinadors
	* @param end the upper bound of the range of Coordinadors (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of Coordinadors
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.Coordinador> findAll(int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the Coordinadors where mail = &#63; from the database.
	*
	* @param mail the mail
	* @throws SystemException if a system exception occurred
	*/
	public void removeByMail(java.lang.String mail)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the Coordinadors from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of Coordinadors where mail = &#63;.
	*
	* @param mail the mail
	* @return the number of matching Coordinadors
	* @throws SystemException if a system exception occurred
	*/
	public int countByMail(java.lang.String mail)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of Coordinadors.
	*
	* @return the number of Coordinadors
	* @throws SystemException if a system exception occurred
	*/
	public int countAll()
		throws com.liferay.portal.kernel.exception.SystemException;
}